$OpenBSD: patch-src_sg_y_in,v 1.1 2009/04/09 23:53:13 sthen Exp $
--- src/sg.y.in.orig	Tue Feb 17 19:49:53 2009
+++ src/sg.y.in	Tue Feb 17 19:50:27 2009
@@ -22,8 +22,11 @@
 extern int globalDebug;
 
 #ifdef HAVE_LIBLDAP
-#include "lber.h"
-#include "ldap.h"
+#ifndef LDAP_DEPRECATED
+#define LDAP_DEPRECATED 1
+#endif
+#include <lber.h>
+#include <ldap.h>
 #endif
 
 #ifdef HAVE_MYSQL
